#ifndef SPRING_H
#define SPRING_H

#include "vector3d.h"
#include "color.h"

class Spring{
	public:
		Spring(Vector3D, Vector3D, double, Color);
		~Spring();
		
		Color getColor();
		void setColor(Color);
		
		Vector3D getPosBegin();
		void setPosBegin(Vector3D);
		
		Vector3D getPosEnd();
		void setPosEnd(Vector3D);
		
		Vector3D getXBegin();
		void setXBegin(Vector3D);
		
		Vector3D getXEnd();
		void setXEnd(Vector3D);
		
		double getK();
		void setK(double);

	private:
		Color color;
		Vector3D posBegin;
		Vector3D posEnd;
		Vector3D xBegin;
		Vector3D xEnd;
		double k;
};

#endif
